VPATH=src/
CFLAGS=-Wall

all: conky-colors
conky-colors:  conky-colors.c

install: conky-colors conkyrc
	mkdir -p ~/.conkycolors
	mkdir -p ~/.fonts/
	cp -v -r conkycolors/* ~/.conkycolors
	cp -v -r fonts/* ~/.fonts/
	cp -v conkyrc ~/.conkyrc
	cp -v conkyCover ~/.conkycolors/bin
	cp -v conkyPlayer.template conkyForecast.template ~/.conkycolors/templates
	chmod +x ~/.conkycolors/scripts/*
	chmod +x ~/.conkycolors/bin/*

conkyrc: conky-colors
	@echo "conkyrc file does not exists. A default will be generated."
	@echo "Run ./conky-colors before make install if you want to customize"
	./conky-colors
clean:
	rm -f conky-colors
	rm -f conkyrc
	rm -f conkyForecast.template
	rm -f conkyPlayer.template
	rm -f conkyCover

uninstall:
	rm -f ~/.conkycolors
	rm -f ~/.fonts/conkycolors
	rm -f ~/.conkyrc

.PHONY: all clean install uninstall

